# ifndef FIFO_H_
# define FIFO_H_
# include <unistd.h>
# include <string.h>
# include <sys/stat.h>
# include <fcntl.h>
# include <stdio.h>
#include <string>

#define FIFO_ERROR -1

class Fifo {
private:
	std::string nombre;
	int fileDes;

	Fifo(const Fifo&);

public:
	Fifo(const std::string nombre);
	virtual ~Fifo();
	int escribir(const char * dato, int datoSize);
	int leer(char * dato, int datoSize);
	void cerrar();

	std::string getNombre();

};
# endif /* FIFO_H_ */
